package kite.sso.controller;

import kite.sso.config.KiteSsoConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 功能描述: <br>
 * 所属包名: com.kite.sso.controller<br>
 * 创建人　: 白剑<br>
 * 创建时间: 06/01/2018 15:54 Friday<br>
 * 当前版本: 1.0<br>
 * 修改历史: <br>
 * 修改时间　　　　　修改人　　　　　版本变更　　　　　修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */
@Controller
@RequestMapping(KiteSsoConfig.LOGIN_PATH)
public class LoginController {

    @Value("${server.context-path}")
    private String contextPath;

    @RequestMapping
    public ModelAndView login() {
        ModelAndView modelAndView = new ModelAndView("login");
        modelAndView.getModelMap().put("contextPath", contextPath);
        return modelAndView;
    }

}
